package com.pug.controller;

import com.pug.bo.UserBo;
import com.pug.common.R;
import com.pug.service.IUserService;
import com.pug.vo.UserVo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class UserController {

    private final IUserService userService;

    @PostMapping("/getLogin")
    public R login(@RequestBody UserVo userVo) {
        UserBo userBo = userService.getLogin(userVo);
        return R.success(userBo);
    }
}
